Skip to content

Add Rust highlighting - #809

Merged
lhecker merged 4 commits into
microsoft:mainfrom
abiriadev:main
Jul 28, 2026
Merged

Add Rust highlighting#809
lhecker merged 4 commits into
microsoft:mainfrom
abiriadev:main

Conversation

@abiriadev

@abiriadev abiriadev commented Apr 22, 2026

Copy link
Copy Markdown
Contributor

This adds an LSH syntax highlighting support for Rust. I basically followed Rust reference's lexical structures part for reference.

Example screenshot image

One caveat is that some keywords like for might be highlighted inappropriately, as LSH isn't much context aware. For instance, a for keyword is highlighted as keyword.control, even though it is supposed to be keyword.other.

image

@abiriadev abiriadev changed the title main feat: add rust syntax highlighting support Apr 22, 2026
@abiriadev

Copy link
Copy Markdown
Contributor Author

@microsoft-github-policy-service agree

@lhecker lhecker changed the title feat: add rust syntax highlighting support Add Rust highlighting Jul 22, 2026

@lhecker lhecker left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@lhecker
lhecker enabled auto-merge (squash) July 28, 2026 16:54
@lhecker

lhecker commented Jul 28, 2026

Copy link
Copy Markdown
Member

FWIW I backed out your highlight-words-as-variables intentionally. They aren't necessarily variables after all.

@lhecker
lhecker disabled auto-merge July 28, 2026 16:59
@lhecker
lhecker enabled auto-merge (squash) July 28, 2026 22:14
@lhecker
lhecker merged commit 9c9fdcc into microsoft:main Jul 28, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants